package com.lbl.third.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbl.third.dto.DishDto;
import com.lbl.third.enytity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要只做两张表：Dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应口味信息
    public DishDto GetByIdWithFlavor(Long id);


    //更新菜品信息，同时更新对应口味信息
    public void updateWithFlavor(DishDto dishDto);

    //删除菜品
    public void removeDish(List<Long> ids);
}
